<?xml version="1.0" encoding="UTF-8" ?>
<table name="${c.table['name']}" href="${h.url_for("tabledefinition", table=c.table['name'])}">
<%
 fields=c.table['fields'].keys()
 fields.sort()
%>
% for name in fields:
<% field=c.table['fields'][name] %>
	<field name="${name}" type="${field['type']}"
  % if field["primarykey"]:
    primarykey="true"
  % endif
  % if field.has_key("default"):
 default="${field["default"]}"
  % endif
   />
% endfor
</table>